﻿<Window x:Class="DumpMe.DumpMeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Dump Me" Height="524.621" Width="771">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
            </Grid.RowDefinitions>

            <Button Content="Main Thread" Click="ThrowException_MainThread" Grid.Column="0" Grid.Row="0" Margin="5" />

            <Button Content="Main Dispatcher" Click="ThrowException_MainDispatcher" Grid.Column="1" Grid.Row="0" Margin="5" />

        
            <Button Content="Thread" Click="ThrowException_Thread" Grid.Column="0" Grid.Row="1" Margin="5" />

            <Button Content="Background UI Thread" Click="ThrowException_BackgroundUIThread" Grid.Column="1" Grid.Row="1" Margin="5" />


            <Button Content="try/finally inside a Task" Click="ThrowException_Task" Grid.Column="0" Grid.Row="2" Margin="5" />

            <Button Content="try/finally outside a Task " Click="ThrowException_TaskWait" Grid.Column="1" Grid.Row="2" Margin="5" />


            <Button Content="New App Domain" Click="ThrowException_SeparateAppDomain" Grid.Column="0" Grid.Row="3" Margin="5" />

            <Button Content="Background Worker" Click="ThrowException_BackgroundWorker" Grid.Column="1" Grid.Row="3" Margin="5" />

            <Button Content="COM Interop" Click="ThrowException_COMInterop" Grid.Column="0" Grid.Row="4" Margin="5" />

        </Grid>

        <ListBox Grid.Row="1" ItemsSource="{Binding Path=Handlers}" />
        
        <!--<Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="25" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <Label Grid.Row="0">AppDomain__CurrentDomain__FirstChanceException</Label>
            <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Path=AppDomain_CurrentDomain_FirstChanceException_Order}"></TextBlock>
            <TextBlock Grid.Row="0" Grid.Column="2" Text="{Binding Path=AppDomain_CurrentDomain_FirstChanceException}"></TextBlock>

            <Label Grid.Row="1">Application__Current__Dispatcher__UnhandledExceptionFilter</Label>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Path=Application_Current_Dispatcher_UnhandledExceptionFilter_Order}"></TextBlock>
            <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Path=Application_Current_Dispatcher_UnhandledExceptionFilter}"></TextBlock>

            <Label Grid.Row="2">Finally</Label>
            <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Path=Finally_Order}"></TextBlock>
            <TextBlock Grid.Row="2" Grid.Column="2" Text="{Binding Path=Finally}"></TextBlock>

            <Label Grid.Row="3">Application__Current__Dispatcher__UnhandledException</Label>
            <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding Path=Application_Current_Dispatcher_UnhandledException_Order}"></TextBlock>
            <TextBlock Grid.Row="3" Grid.Column="2" Text="{Binding Path=Application_Current_Dispatcher_UnhandledException}"></TextBlock>

            <Label Grid.Row="4">Application__Current__DispatcherUnhandledException</Label>
            <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding Path=Application_Current_DispatcherUnhandledException_Order}"></TextBlock>
            <TextBlock Grid.Row="4" Grid.Column="2" Text="{Binding Path=Application_Current_DispatcherUnhandledException}"></TextBlock>

            <Label Grid.Row="5">AppDomain__CurrentDomain__FirstChanceException Second time</Label>
            <TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding Path=AppDomain_CurrentDomain_FirstChanceException2_Order}"></TextBlock>
            <TextBlock Grid.Row="5" Grid.Column="2" Text="{Binding Path=AppDomain_CurrentDomain_FirstChanceException2}"></TextBlock>

            <Label Grid.Row="6">AppDomain__CurrentDomain__UnhandledException</Label>
            <TextBlock Grid.Row="6" Grid.Column="1" Text="{Binding Path=AppDomain_CurrentDomain_UnhandledException_Order}"></TextBlock>
            <TextBlock Grid.Row="6" Grid.Column="2" Text="{Binding Path=AppDomain_CurrentDomain_UnhandledException}"></TextBlock>


        </Grid>-->
        
    </Grid>
</Window>
